Ext.namespace('GBIF');
Ext.onReady(function() {
	Ext.QuickTips.init();
	Ext.fly(document.body).on('contextmenu', function(e, target) {
		e.preventDefault();
	});	
	
	this.header = {
				height: 95
			,	cls: 'glossary-header'		
			,	region: 'north'
			,	xtype: 'box'
			,	border: false
			,	margins: '0 0 5 0'					
			,	html: '<div class="header">'+
				 '<a href="http://www.gbif.org/" target="_blank" class="gbif">'+
					 '<img src="../resources/images/gbif.jpg" alt="GBif" width="104" height="90" border="0" /></a>'+
				 '<div class="header-text">'+
					 '<h1>GBIF Resources</h1>'+
					 '<p>DarwinCore &amp; Extensions Definitions</p>'+
				 '</div></div>'
	}
			
	this.center = new GBIF.CenterPanel();
		
	var mainViewPort = new Ext.Viewport({
			layout: 'border'
		,	items:[
					this.header
				,	this.center
			]
	});
	
	Ext.get('cover1').remove();
	Ext.get('cover2').remove();
	Ext.get('cover3').remove();
	Ext.get('cover4').remove();
	Ext.get('cover5').remove();
	Ext.get('loading').remove();
	Ext.get('loading-mask').fadeOut({remove:true});
});